package com.pai4j.pay;
import com.pai4j.common.util.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan("com.pai4j")
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients("com.pai4j.rmi")
public class Pai4jPayApplication {

    public static void main(String[] args) {

        SpringApplication.run(Pai4jPayApplication.class, args);

        SpringContextUtil.getBean(PaymentCallBackRedisDelayQueue.class).schedule();
    }

}
